<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-14 09:34:12
 * @LastEditTime : 2022-09-14 16:59:44
 * @FilePath     : \src\AComponent.vue
-->
<template>
    <h3>我是组件a</h3>
    <ul>
        <li v-for="(item, index) in res" :key="index">{{item}}</li>
    </ul>
</template>

<script setup>
import {reactive} from 'vue'

import axios from 'axios'
let res = reactive({});
const {data} = await axios.get('https://www.fastmock.site/mock/7498e6f944f6232eda95f990e3c7557d/web/api/v1/data/getAData')
res = data.data
console.log('res', res)

</script>